package com.funny.stock.trade.dao.repo;

import com.funny.stock.trade.dao.pojo.ComposeStockItemDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description  
 * @Author  pengl
 * @Date 2020-05-17 
 */

@Repository
public interface ComposeStockItemRepo extends JpaRepository<ComposeStockItemDO,Long> {

    ComposeStockItemDO findByCreateIdAndStockCodeAndComposeId(Long createId,String code,Long composeId);

    List<ComposeStockItemDO> findByCreateIdAndComposeId(Long createId,Long composeId);
}
